package com.algo.Jaya;

import java.util.Date;

/**
 * @Author: guoxing
 * @Email: gx_study2022@163.com
 * @Description: https://blog.csdn.net/qq_37853160/article/details/127273019
 * @Date: 2024/6/24 22:30
 * @ClassName: MainClass
 **/
public class MainClass {
    public static void main(String[] args) {

        RawData rawData = new RawData();
        JayaAlgorithm jaya = new JayaAlgorithm(200, 100, rawData);
        Date date1 = new Date();
        Individual result = jaya.getResult();
        Date date2 = new Date();
        Long time = (date2.getTime()-date1.getTime());
        System.out.println("计算时间为"+time+"ms");
        System.out.println("最终结果为："+result);
        System.out.println("finishTime = "+result.getFinishTime()+"; freeTime = "+result.getFreeTime());
        result.printDetailTime();
    }
}

